#ifndef	GT30L32_H
#define GT30L32_H

#include "main.h"
#include "spi.h"
#include "gpio.h"
#include "utf8_gbk.h"
#include <string.h>

/************** GB2312 Address *****************/
#define BaseAdd_12X12		0x00000
#define BaseAdd_16X16		0x2C9D0
#define BaseAdd_24X24		0x68190
#define BaseAdd_32X32		0xEDF00
/************** ASCII Address ******************/
#define ASCIIAdd_5X7		0x1DDF80
#define ASCIIAdd_7X8		0x1DE280
#define ASCIIAdd_6X12		0x1DBE00
#define ASCIIAdd_8X16		0x1DD780
#define ASCIIAdd_12X24          0x1DFF00
#define ASCIIAdd_16X32          0x1E5A50

void GT_FontGetHZ12(uint16_t str, uint8_t* font);
void GT_FontGetHZ16(uint16_t str, uint8_t* font);
void GT_FontGetHZ24(uint16_t str, uint8_t* font);
void GT_FontGetHZ32(uint16_t str, uint8_t* font);

void GT_FontGetASCII7(uint8_t str, uint8_t* font);
void GT_FontGetASCII8(uint8_t str, uint8_t* font);
void GT_FontGetASCII12(uint8_t str, uint8_t* font);
void GT_FontGetASCII16(uint8_t str, uint8_t* font);
void GT_FontGetASCII24(uint8_t str, uint8_t* font);
void GT_FontGetASCII32(uint8_t str, uint8_t* font);

#endif
